package com.wing.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.system.model.entity.RoomInfo;
import com.wing.system.model.request.RoomInfoForm;
import com.wing.system.model.response.RoomInfoVO;

import java.util.List;
import java.util.Map;

/**
 * 房号管理-Service
 *
 * @author
 */
public interface RoomInfoService extends IService<RoomInfo> {

    /**
     * 添加
     *
     * @param roomInfoForm
     * @return
     */
    int add(RoomInfoForm roomInfoForm);

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<RoomInfoVO> list4app(Map<String, Object> params);

    /**
     * 分页list-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    Page<RoomInfoVO> pageList4app(Page page, Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    RoomInfoVO get4appById(Long id);

    int enable(Long id);

    int disable(Long id);

    Page<RoomInfoVO> findWorkshop(Page pg);
}
